﻿@using Infrastructure.Operator
@{
    Layout = null;
   
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <link href="~/Content/UI/css/style.css?2017" rel="stylesheet" />
    <script src="~/Content/UI/js/jquery.js"></script>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                $('dd').find('ul').slideUp();
                if ($ul.is(':visible')) {
                    $(this).next('ul').slideUp();
                } else {
                    $(this).next('ul').slideDown();
                }
            });
        })
    </script>
</head>
<body style="background:#f0f9fd;">
    @*<div class="lefttop"><span></span>通讯录</div>*@
    <dl class="leftmenu">

        @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("管理信息") != -1|| OperatorProvider.Provider.GetCurrent().UserName=="admin")
        {
            <dd>
                <div class="title">
                    <span><img src="../Content/UI/images/leftico01.png" /></span>管理信息
                </div>
                <ul class="menuson">
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("账号管理") != -1|| OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li class="active"><cite></cite><a href='@Url.Action("Index","AdminUser")' target="rightFrame">账号管理</a><i></i></li>
                    }
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("部门管理") != -1||OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index", "Depart")' target="rightFrame">部门管理</a><i></i></li>
                    }
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("设备管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index", "Mobile")' target="rightFrame">设备管理</a><i></i></li>
                    }
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("普通用户") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index", "UserInfo")' target="rightFrame">普通用户</a><i></i></li>
                    }
                </ul>
            </dd>
        }
        @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("访客信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
        {
            <dd>
                <div class="title">
                    <span><img src="../Content/UI/images/leftico02.png" /></span>访客信息
                </div>
                <ul class="menuson">
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("访客管理") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index","Visitor")' target="rightFrame">访客管理</a><i></i></li>
                    }
                </ul>
            </dd>
        }


        @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("考勤信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
        {
            <dd>
                <div class="title"><span><img src="../Content/UI/images/leftico03.png" /></span>考勤信息</div>
                <ul class="menuson">
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("进出记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index","AccessRecord")' target="rightFrame">进出记录</a><i></i></li> }
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("图形展示") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("HighchartView","AccessRecord")' target="rightFrame">图形展示</a><i></i></li> }
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("考勤记录") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("CheckIn","AccessRecord")' target="rightFrame">考勤记录</a><i></i></li> }
                </ul>
            </dd>
        }
        @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("系统信息") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
        {
            <dd>
                <div class="title"><span><img src="../Content/UI/images/leftico04.png" /></span>系统信息</div>
                <ul class="menuson">
                    @if (OperatorProvider.Provider.GetCurrent().Menus.IndexOf("系统设置") != -1 || OperatorProvider.Provider.GetCurrent().UserName == "admin")
                    {
                        <li><cite></cite><a href='@Url.Action("Index", "SystemConfig")' target="rightFrame">系统设置</a><i></i></li>
                    }
                </ul>

            </dd>
        }
    </dl>
</body>
</html>